<?php 

class Hotel2hotelFeature extends CActiveRecord
{
	public function tableName()
	{
		return lfirst(__CLASS__);
	}
	
	public static function model($className = __CLASS__)
    {
    	return parent::model(lfirst(__CLASS__));
    }
    
	public function relations()
	{
		return array(
	        'hotels'  => array(self::BELONGS_TO, 'Hotel', 'hotelId', 'group' => '??.id'),
			'feature' => array(self::BELONGS_TO, 'HotelFeature', 'hotelFeatureId')
	    );
	}
}